package com;import com.demo2.BeanLifeComponent;import org.springframework.context.support.ClassPathXmlApplicationContext;public class app3 {    public static void main(String[] args) {        ClassPathXmlApplicationContext context =                new ClassPathXmlApplicationContext("spring_config.xml");        BeanLifeComponent c = context.getBean("beanLifeComponent",BeanLifeComponent.class);        //use Bean.....        //销毁容器        context.close();    }}